package org.karelun.gef.figure;

import org.eclipse.draw2d.Label;
import org.eclipse.draw2d.geometry.Rectangle;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.Image;
import org.karelun.gef.helper.ImageResource;

public class MethodFigure extends NodeFigure{

    public MethodFigure() {      
         label=new Label();
    	Image image=ImageResource.getImage(ImageResource.METHOD);
         label.setIcon(image);
//		setOpaque(true);
		
//		BorderLayout layout = new BorderLayout();
//		setLayoutManager(layout);		
		add(label);
    }  
     // Overridden methods from Figure
    public void setBounds(Rectangle rect) {
        super.setBounds(rect);
        this.label.setBounds(rect);
    }
	
	protected void setBGColor(Color color) {

	}
}
